package com.hp.consumer;

import com.hp.consumer.ribbon.DefaultRibbonClientConfiguration;
import com.hp.consumer.ribbon.UserProviderRibbonClientConfiguration;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.annotation.Configuration;

// RibbonConfiguration.java
@Configuration
@LoadBalancerClients(
        value = {
                @LoadBalancerClient(name = "demo-provider", configuration = UserProviderRibbonClientConfiguration.class) // 客户端级别的配置
        },
        defaultConfiguration = DefaultRibbonClientConfiguration.class // 全局配置
)
public class RibbonConfiguration {
}



